package com.zust.data.entity;

import com.zust.data.entity.base.BaseEntity;
import org.mongodb.morphia.annotations.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.time.LocalDateTime;

/**
 * @author senselyan
 * @date 2018/4/10 19:51
 */
@Document(collection = "dl_column")
public class DlColumn  extends BaseEntity {

    private String userId;
    private String dataId;

    private String name;
    private String valueA;
    private String valueB;
    private String valueC;
    private String valueD;
    private String valueE;

    private Integer rank;

    public DlColumn(String userId, String dataId) {
        this.userId = userId;
        this.dataId = dataId;
        this.name = "";
        this.valueA = "";
        this.valueB = "";
        this.valueC = "";
        this.valueD = "";
        this.valueE = "";
        this.rank = 0;
        this.setCreateTime(LocalDateTime.now());
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getDataId() {
        return dataId;
    }

    public void setDataId(String dataId) {
        this.dataId = dataId;
    }

    public String getValueA() {
        return valueA;
    }

    public void setValueA(String valueA) {
        this.valueA = valueA;
    }

    public String getValueB() {
        return valueB;
    }

    public void setValueB(String valueB) {
        this.valueB = valueB;
    }

    public String getValueC() {
        return valueC;
    }

    public void setValueC(String valueC) {
        this.valueC = valueC;
    }

    public String getValueD() {
        return valueD;
    }

    public void setValueD(String valueD) {
        this.valueD = valueD;
    }

    public String getValueE() {
        return valueE;
    }

    public void setValueE(String valueE) {
        this.valueE = valueE;
    }

    public Integer getRank() {
        return rank;
    }

    public void setRank(Integer rank) {
        this.rank = rank;
    }
}
